message-policy
This command configures the Message Policies table, which lets you define SIP Message Policy rules.
Syntax
(config-voip)# message message-policy <Index> (message-policy-<Index>)#
Command |
Description |
---|---|
Index |
Defines the table row index. |
body-list |
Defines the SIP body type (i.e., value of the Content-Type header) to blacklist or whitelist. |
body-list-type {policy-blacklist|policy-whitelist} |
Defines the policy (blacklist or whitelist) for the SIP body specified in the 'Body List' parameter (above). |
max-body-length |
Defines the maximum SIP message body length. |
max-header-length |
Defines the maximum SIP header length. |
max-message-length |
Defines the maximum SIP message length. |
max-num-bodies |
Defines the maximum number of bodies (e.g., SDP) in the SIP message. |
max-num-headers |
Defines the maximum number of SIP headers. |
method-list |
Defines SIP methods (e.g., INVITE\BYE) to blacklist or whitelist. |
method-list-type {policy-blacklist|policy-whitelist} |
Defines the policy (blacklist or whitelist) for the SIP methods specified in the 'Method List' parameter (above). |
name |
Defines a descriptive name, which is used when associating the row in other tables. |
send-rejection {policy-drop|policy-reject} |
Defines whether the device sends a SIP response if it rejects a message request due to the Message Policy. |
signature-db-enable {disabled|enabled} |
Enables the use of the Malicious Signature database (signature-based detection). |
Command Mode
Privileged User
Example
This example configures the maximum number of bodies in SIP messages to two:
(config-voip)# message message-policy 0 (message-policy-0)# name ITSP-Message (message-policy-0)# max-num-bodies 2 (message-policy-0)# activate